<?php
if(!isset($install_module)) exit;
$Query ='
CREATE TABLE immo_page (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`name` VARCHAR( 100 ) NOT NULL ,
`name_html` VARCHAR( 100 ) NOT NULL ,
`contenue` TEXT NOT NULL ,
`date_ajout` INT( 20 ) NOT NULL ,
`date_modif` INT( 20 ) NOT NULL ,
`auteur` INT( 10 ) NOT NULL
) ENGINE = MYISAM ;
';
$db->sql_query($Query);
echo 'Table immo_page cree.<br />';
$QueryArray = array(
'name'  =>  'Page',
'fichier'   =>  'Page',
'version'   =>  '1.0',
'date_install'  =>  time(),
'date_version'  =>  'Avril 2010',
'install'   =>  '1',
'actif' =>  '1',
'auteur'    =>  'Drouche Romain',
'description_short' =>  'permet l ajout de page HTML.',
);
$db->sql_query(CreateQueryInsert($QueryArray,'immo_plugins'));
echo 'Plugin declare et installe<br />';
echo 'Installation finie<br />';
?>
